import { Card } from "antd";
import styled from "styled-components";

export const HeaderContent = styled.div`
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .data-source {
    width: 380px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    line-height: 35px;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }

  .anv-list {
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);

    .anv-item {
      height: 100%;
      padding: 0 20px;
      cursor: pointer;
      text-align: center;
      line-height: normal;
      font-size: 14px;

      span {
        font-size: 26px;
        margin: 6px;
      }

      &:hover {
        background: #f7f7f7;
      }
    }

    .select {
      background: #1890ff;
      color: #fff;

      &:hover {
        background: #1890ff;
      }
    }
  }

  .option {
    cursor: pointer;
    font-size: 18px;

    > span {
      margin-left: 10px;
    }
  }
`;

export const ScreenContent = styled.div`
  font-size: 16px;
  margin-bottom: 10px;

  .screen-head {
    cursor: pointer;
  }

  .screen-box {
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    position: relative;

    .screen-arrow {
      position: absolute;
      top: -5px;
      left: 40px;
      width: 10px;
      height: 6px;
      overflow: hidden;

      > i {
        display: block;
        width: 10px;
        height: 10px;
        margin-top: 1px;
        border: 1px solid #e0e0e0;
        background: #f0f2f5;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
      }
    }

    .screen-subject {
      width: 710px;
      border: 1px solid #dddddd;
      border-radius: 5px;
      padding: 10px;
      margin: 10px 0;

      .ant-radio-group {
        border: 1px solid #d9d9d9;
        border-radius: 5px;
        overflow: hidden;
      }

      .ant-radio-button-wrapper {
        border: none;
      }

      .screen-condition {
        display: flex;
        justify-content: space-between;
      }

      .screen-select {
        width: 300px;
        margin-right: 10px;
      }
    }

    .screen-item {
      margin-top: 10px;
    }
  }
`;

export const AnalysisCard = styled(Card)`
  .analysis-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 15px 0;
  }

  .analysis-column {
    margin-bottom: 15px;
    font-size: 14px;

    .step-info {
      span {
        margin-right: 30px;
      }
    }
  }

  .analysis-item {
    margin-bottom: 15px;

    .analysis-item-title {
      font-size: 16px;
      margin-bottom: 10px;

      span {
        color: #a6a6a6;
        margin-left: 10px;
      }
    }

    .analysis-item-html {
      background: #f7f9fa;
      padding: 8px;
      border-radius: 5px;
    }

    .ant-progress-show-info .ant-progress-outer {
      margin-right: calc(-2em - 30px);
      padding-right: calc(2em + 30px);
    }
  }
`;

export const TableContent = styled.div`
  margin-top: 15px;

  .ant-progress {
    .ant-progress-bg {
      height: 12px !important;
    }
  }

  .step-total {
    text-align: center;
    font-size: 18px;

    span {
      color: #4189ff;
      font-weight: 700;
    }
  }
`;

export const AnswerCard = styled(Card)`
  .answer-operate {
    margin: 15px 0;
    font-size: 16px;
  }

  .record-operate {
    font-size: 16px;

    .eye {
      cursor: pointer;
      color: #1f1f1f;
      &:hover {
        color: #1890ff;
      }
    }

    .delete {
      cursor: pointer;
      margin-left: 10px;

      &:hover {
        color: #ff4d4f;
      }
    }
  }
`;
